export default {
  bind(el,binding,vnode){
    const _ops = binding.value,
          _c = el.getElementsByClassName(_ops.className);
    // console.log(_ops);
    // console.log(_c);
    _c[_ops.curIdx].className += ` ${_ops.currentClassName}`;
  },
  update(el,binding,vnode){
    const _ops = binding.value,
          _oOps = binding.oldValue,
          _c = el.getElementsByClassName(_ops.className);
    // console.log(binding.oldValue);
    _c[_oOps.curIdx].className = `${_oOps.className}`;
    // $前面有个空格不然报错
    _c[_ops.curIdx].className += ` ${_ops.currentClassName}`;
  }
}
